package com.clarence.dada.core.auth.entity.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 用在用户登录校验结果的包装
 *
 * @author fengshuonan
 * @since 2023/6/17 21:55
 */
@Data
public class UserValidateDTO {

    /**
     * 用户id
     */
    @Schema(title = "用户id", example = "1")
    private Long userId;

    /**
     * 加密后的密码，存在sys_user表的password字段
     */
    @Schema(title = "加密后的密码", example = "123456")
    private String userPasswordHexed;

    /**
     * 用户状态，状态在UserStatusEnum维护
     */
    @Schema(title = "用户状态", example = "1")
    private Integer userStatus;

    /**
     * 账号
     */
    @Schema(title = "账号", example = "1")
    private String account;

    public UserValidateDTO(Long userId, String userPasswordHexed, Integer userStatus, String account) {
        this.userId = userId;
        this.userPasswordHexed = userPasswordHexed;
        this.userStatus = userStatus;
        this.account = account;
    }

}
